<template>
    <div class="drawerContainer">
        <el-form :model="propJson" label-width="auto" style="width: 100%">
            <el-form-item label="分割线样式">
                <el-select v-model="propJson.type" placeholder="标签类型" style="width: 100%">
                    <el-option label="实线" value="solid" />
                    <el-option label="点线" value="dotted" />
                    <el-option label="虚线" value="dashed" />
                </el-select>
            </el-form-item>

            <el-form-item label="是否添加内容">
                <el-radio-group v-model="propJson.isAddContent">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item v-if="propJson.isAddContent" label="内容位置">
                <el-select v-model="propJson.position" placeholder="标签类型" style="width: 100%">
                    <el-option label="左侧" value="left" />
                    <el-option label="中间" value="center" />
                    <el-option label="右侧" value="right" />
                </el-select>
            </el-form-item>

            <el-divider v-if="propJson.isAddContent">分割线内容</el-divider>

            <CommonThirdServiceValue v-if="propJson.isAddContent" :actionInfo="propJson.contentInfo ? propJson.contentInfo : {}" :commonParam="commonParam" />
        </el-form>
    </div>
</template>

<script setup lang="ts" name="DividerDrawer">
import CommonThirdServiceValue from "@/components/lowcode/service/CommonThirdServiceValue.vue";
import {computed, defineProps} from "vue";
import {useLowCodeStore} from "@/stores/lowcode/lowcode.ts";
let props = defineProps(['commonParam']);

let commonParam = computed(() => {return props['commonParam']})

let propJson = computed(() => {return useLowCodeStore().lowCodeDrawerJsonInfo});
</script>

<style scoped lang="less">

</style>